Credit   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 5
dl 0
loc 13
rs 10
c 0
b 0
f 0

1 Function

Rating   Name   Duplication   Size   Complexity  
A details 0 8 1
1
import { BaseEndpoint } from './baseEndpoint';
2
import { CreditsResponse } from '../interfaces/credits';
3
4
/**
5
 * Credit Endpoint Class
6
 */
7
export class Credit extends BaseEndpoint {
8
9
    /**
10
     * Get a movie or TV credit details by id.
11
     * @return { Promise<CreditsResponse> }
12
     * @see https://developers.themoviedb.org/3/credits/get-credit-details
13
     */
14
    public async details(creditID: string): Promise<CreditsResponse> {
15
        return this.sendGetRequest(`credit/${creditID}`);
16
    }
17
18
}
19